using System;
using System.Collections.Generic;

namespace ConsoleApplication2.Models
{
    public partial class Oe
    {
        public Oe()
        {
            this.Apdets = new List<Apdet>();
            this.Apdets1 = new List<Apdet>();
            this.Oedets = new List<Oedet>();
        }

        public string ID { get; set; }
        public string TYPE { get; set; }
        public string NUMBER { get; set; }
        public string SALESMAN { get; set; }
        public string NUMBERFROM { get; set; }
        public string NUMBERTO { get; set; }
        public System.DateTime DATE { get; set; }
        public double COST { get; set; }
        public string TAXAUTH { get; set; }
        public Nullable<double> SALESTAX { get; set; }
        public Nullable<double> FEDTAX { get; set; }
        public string SHIPTO1 { get; set; }
        public string SHIPTO2 { get; set; }
        public string SHIPTO3 { get; set; }
        public string SHIPTO4 { get; set; }
        public string SHIPTO5 { get; set; }
        public string SHIPTO6 { get; set; }
        public bool ONACCOUNT { get; set; }
        public bool PRINTED { get; set; }
        public byte POSTED { get; set; }
        public string COMMENTS { get; set; }
        public byte CLOSED { get; set; }
        public string PONUMBER { get; set; }
        public string TERMS { get; set; }
        public Nullable<short> JOBID { get; set; }
        public string ENTITY { get; set; }
        public string ORDPOSTED { get; set; }
        public short CURRENCY { get; set; }
        public double SUBTOTALA { get; set; }
        public double PATPERC { get; set; }
        public double INS1PERC { get; set; }
        public double INS2PERC { get; set; }
        public string SYSPDSTART { get; set; }
        public string ARBATCH { get; set; }
        public string OEBATCH { get; set; }
        public string GUAR1_ID { get; set; }
        public string GUAR2_ID { get; set; }
        public string APBATCH { get; set; }
        public bool REST { get; set; }
        public bool HARDCODEP { get; set; }
        public bool HARDCODEG1 { get; set; }
        public bool HARDCODEG2 { get; set; }
        public double DISCPERC { get; set; }
        public string ADMISIONID { get; set; }
        public int PATPCODE { get; set; }
        public Nullable<int> G1PCODE { get; set; }
        public Nullable<int> G2PCODE { get; set; }
        public bool SECURED { get; set; }
        public double KACT { get; set; }
        public double AREACT { get; set; }
        public double ORACT { get; set; }
        public double PATAMTACT { get; set; }
        public double INS1AMTACT { get; set; }
        public double INS2AMTACT { get; set; }
        public double DISCOUNTA { get; set; }
        public Nullable<bool> REPOST { get; set; }
        public int USERID { get; set; }
        public string File_Primary_Key { get; set; }
        public Nullable<double> CONSULTATION { get; set; }
        public short CSTCTRID { get; set; }
        public Nullable<short> CLASSID { get; set; }
        public Nullable<short> COVERAGEPLANID1 { get; set; }
        public Nullable<short> COVERAGEPLANID2 { get; set; }
        public Nullable<short> ClassGuar1_Id { get; set; }
        public Nullable<short> ClassGuar2_Id { get; set; }
        public Nullable<double> VisitCeiling1 { get; set; }
        public Nullable<double> VisitCeiling2 { get; set; }
        public string vglbatch { get; set; }
        public Nullable<double> Copayment_start_Value { get; set; }
        public Nullable<double> Deductible { get; set; }
        public Nullable<double> Copayment_End_Value { get; set; }
        public string Bill_ { get; set; }
        public Nullable<int> MasterList { get; set; }
        public Nullable<double> TotalMasterLstPrice { get; set; }
        public Nullable<double> DaysCeiling1 { get; set; }
        public Nullable<double> DaysCeiling2 { get; set; }
        public short Billversion { get; set; }
        public Nullable<double> Amountbeforedisc { get; set; }
        public string MasterItem { get; set; }
        public Nullable<bool> FlatPriceMode { get; set; }
        public Nullable<byte> MedicalAudit { get; set; }
        public Nullable<byte> FinancialAudit { get; set; }
        public Nullable<byte> mode { get; set; }
        public byte inout { get; set; }
        public int Voucher { get; set; }
        public decimal APPROVED_INS1AMT { get; set; }
        public decimal APPROVED_INS2AMT { get; set; }
        public byte APPROVED_INS1 { get; set; }
        public byte APPROVED_INS2 { get; set; }
        public Nullable<int> USERID_APPROVEL_INS1 { get; set; }
        public Nullable<int> USERID_APPROVEL_INS2 { get; set; }
        public Nullable<System.DateTime> MedicalAuditDate { get; set; }
        public Nullable<System.DateTime> FinancialAuditDate { get; set; }
        public Nullable<short> MedicalAuditUser { get; set; }
        public Nullable<short> FinancialAuditUser { get; set; }
        public Nullable<byte> ClaimSent1 { get; set; }
        public Nullable<byte> ClaimSent2 { get; set; }
        public Nullable<System.DateTime> ClaimSentDate1 { get; set; }
        public Nullable<System.DateTime> ClaimSentDate2 { get; set; }
        public Nullable<short> ClaimSentUser1 { get; set; }
        public Nullable<short> ClaimSentUser2 { get; set; }
        public Nullable<byte> ClaimSent { get; set; }
        public Nullable<System.DateTime> ClaimSentDate { get; set; }
        public Nullable<short> ClaimSentUser { get; set; }
        public Nullable<byte> WichGuarantor { get; set; }
        public Nullable<System.DateTime> ApprovedDate1 { get; set; }
        public Nullable<System.DateTime> ApprovedDate2 { get; set; }
        public Nullable<byte> APPROVED { get; set; }
        public Nullable<System.DateTime> ApprovedDate { get; set; }
        public Nullable<short> Approval_user { get; set; }
        public Nullable<int> PaymentID1 { get; set; }
        public Nullable<int> PaymentID2 { get; set; }
        public Nullable<int> PaymentID { get; set; }
        public string Vglbatch1 { get; set; }
        public string Vglbatch2 { get; set; }
        public Nullable<byte> ClaimDiscountType { get; set; }
        public Nullable<byte> ClaimDiscountType2 { get; set; }
        public string Reference { get; set; }
        public string OE_TrackNB { get; set; }
        public virtual ICollection<Apdet> Apdets { get; set; }
        public virtual ICollection<Apdet> Apdets1 { get; set; }
        public virtual ICollection<Oedet> Oedets { get; set; }
    }
}
